import { get } from '@/api';

// 获取任务执行结果列表
export const getResultList = async (page: number = 1, pageSize: number = 10) => {
  try {
    const response = await get('/task/list', {
      params: {
        page: page,
        page_size: pageSize,
      }
    });
    return response.data;
  } catch (error) {
    console.error('获取任务执行结果失败:', error);
    throw error;
  }
};